<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$data.title}</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'/>
<link rel="stylesheet" href="/static/video/css/swiper.css?v=5">
<link rel="stylesheet" href="/static/video/css/video.css?v=6">
<script src="/static/video/js/jquery.js?v=5"></script>
<script src="/static/video/js/swiper.js?v=5"></script>
</head>
<body>
<img src="/static/video/images/shareright.png" class="share-arrow">
<a class="back"href="{$data.new_shre_url}" >返回</a>
<div class="bottom">
    <a href="{$data.new_shre_url}" >点击返回</a>
</div>
<div class="main">
    <h1>{$data.title}</h1>
    <div class="author">
        <span>原创</span>
        <a href="#">热点新闻</a>
        {$data.create_time}
        &nbsp;北京
    </div>
    <div class="qun">
        <a href="#">
            <img src="https://p.ssl.qhimg.com/t01c1ae71cd7c89c4bc.jpg">
            <div class="info">
                <h3>绝密曝光总群</h3>
                <p>本群已经经过安全验证</p>
                <span class="btn">点击进群</span>
            </div>
        </a>
    </div>
</div>
<div class="video play">
    <video id="video" src="{$data.url}" playsinline loop controls></video>
    <div class="info">
        <h3>继续观看</h3>
        <p>{$data.title}</p>
    </div>
</div>
<div class="main">
    <p class="read">阅读 10w+</p>
    <div class="btns">
        <a href="#" class="btn1">900</a>
        <a href="#" class="btn2">1000</a>
        <div></div>
        <a href="#" class="btn3">2400</a>
        <a href="#" class="btn4">3200</a>
    </div>
</div>
<!--<div class="main">-->
<!--    <div class="title">观看更多</div>-->
<!--</div>-->
<!--<div class="vlist"></div>-->
<div class="main">
    <div class="slider">
        <div class="swiper-container">
            <div class="swiper-wrapper">
                <div class="swiper-slide">
                    <a href="#"><img src="https://p.ssl.qhimg.com/t016a8be6fbd926c8f5.jpg"></a>
                </div>
                <div class="swiper-slide">
                    <a href="#"><img src="https://p.ssl.qhimg.com/t01aaec8e3fc5841f67.jpg"></a>
                </div>
                <div class="swiper-slide">
                    <a href="#"><img src="https://p.ssl.qhimg.com/t01dbbb5e49a5718265.jpg"></a>
                </div>
                <div class="swiper-slide">
                    <a href="#"><img src="https://p.ssl.qhimg.com/t013c6dfca4b2e93837.jpg"></a>
                </div>
            </div>
            <div class="swiper-pagination"></div>
        </div>
        <span class="ad">广告</span>
    </div>
    <div class="book">
        <h3>留言</h3>
        <ul>
            {volist name="$data.pinglun" id="vo"}
            <li>
                <img src="{$vo.img}">
                <div class="info">
                    <h3>{$vo.title}</h3>
                    <p>{$vo.content}</p>
                    <span class="zan">{$vo.dianzan}</span>
                </div>
            </li>
            {/volist}
        </ul>
    </div>
</div>
<script src="/static/video/js/video.js?v=5"></script>
<script src="__STATIC__/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
    
	/*分享弹出*/
	function {$rand_str.bbb}(num) {
	    if({$rand_str.data}.miao>0){
		switch (num) {
			case 0:
				huan_bg(num)
			{$rand_str.aaa}({$rand_str.config}.video_share_alert_0, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
				break;
			case 1:
				huan_bg(num)
			{$rand_str.aaa}({$rand_str.config}.video_share_alert_1, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
				break;
			case 2:
				huan_bg(num)
			{$rand_str.aaa}({$rand_str.config}.video_share_alert_2, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
				break;
			case 3:
				huan_bg(num)
			{$rand_str.aaa}({$rand_str.config}.video_share_alert_3, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
				break;
			case 4:
				huan_bg(num)
			{$rand_str.aaa}({$rand_str.config}.video_share_alert_4, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
				break;
			case 5:
				huan_bg(num)
			{$rand_str.aaa}({$rand_str.config}.video_share_alert_5, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
				break;
			case 6:
				huan_bg(num)
			{$rand_str.aaa}({$rand_str.config}.video_share_alert_6, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
				break;
			default:
				end_share();
		}
		}


	}


	/*查看更多分享弹出*/
	function {$rand_str.aa}(num) {
	    if({$data.wzqz}>0){
                
        
		switch (num) {
			case 0:
				huan_bg(num)
			{$rand_str.aaa}({$rand_str.config}.show_all_alert_0, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
				break;
			case 1:
				huan_bg(num)
			{$rand_str.aaa}({$rand_str.config}.show_all_alert_1, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
				break;
			case 2:
				huan_bg(num)
			{$rand_str.aaa}({$rand_str.config}.show_all_alert_2, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
				break;
			case 3:
				huan_bg(num)
			{$rand_str.aaa}({$rand_str.config}.show_all_alert_3, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
				break;
			case 4:
				huan_bg(num)
			{$rand_str.aaa}({$rand_str.config}.show_all_alert_4, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
				break;
			case 5:
				huan_bg(num)
			{$rand_str.aaa}({$rand_str.config}.show_all_alert_5, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
				break;
			case 6:
				huan_bg(num)
			{$rand_str.aaa}({$rand_str.config}.show_all_alert_6, {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'));
				break;
			default:
				end_share();
		}
		
	    }

	}



	/*加载公众号分享接口权限*/
	$(function() {

		// {$rand_str.bbb}({$rand_str.ccc}++);

		$.post('/item/jssdk/api?url=' + encodeURIComponent(location.href.split('#')[0]), {}, function(res) {
		    console.log(res)
			wx.config(res.data);
			wx.ready(function() {

				/*调用第一次分享*/
				if ( {$rand_str.config}.video_share_xian_who == 1 ){
					share_qun();
				} else {
					share_quan();
				}

			});

			wx.error(function(res){
				console.log(res);
			});

		}, 'json');

	});

	/*分享到群*/
	function share_qun() {
		wx.hideOptionMenu();
		wx.showMenuItems({
			menuList: ['menuItem:share:appMessage']
		});
		wx.onMenuShareAppMessage({
			title: {$rand_str.data}.share_title,
			desc: {$rand_str.data}.share_desc,
			link: {$rand_str.data}.share_link,
			imgUrl: {$rand_str.data}.share_img,
			success: function(res) {
                console.log(res)
				/*弹出分享提示*/
				if($("#url").val()){
				    {$rand_str.bbb}({$rand_str.ccc}++);
				}else if($("#wenzhang").val() || $("#imgs").val()){
				    {$rand_str.aa}({$rand_str.ddd}++);
				}
				

				/*分享到群次数-1*/
				{$rand_str.config}.video_share_qun_num--;
				if ( {$rand_str.config}.video_share_qun_num < 1 ){

					if ( {$rand_str.config}.video_share_xian_who < 2 && {$rand_str.config}.video_share_quan_num > 0 ){
						share_quan();
					} else {
						end_share();
					}

				} else {
					share_qun();
				}

			},
		});

	}


	/*分享到朋友圈*/
	function share_quan() {
		wx.hideOptionMenu();
		wx.showMenuItems({
			menuList: ['menuItem:share:timeline']
		});
		wx.onMenuShareTimeline({
			title: {$rand_str.data}.share_title,
			link: {$rand_str.data}.share_link,
			imgUrl: {$rand_str.data}.share_img,
			success: function(res) {
                console.log(res)
				/*弹出分享提示*/
				// {$rand_str.bbb}({$rand_str.ccc}++);
				if($("#url").val()){
				    {$rand_str.bbb}({$rand_str.ccc}++);
				}else if($("#wenzhang").val() || $("#imgs").val()){
				    {$rand_str.aa}({$rand_str.ddd}++);
				}

				/*分享到朋友圈次数-1*/
				{$rand_str.config}.video_share_quan_num--;
				if ( {$rand_str.config}.video_share_quan_num < 1 ){

					if ( {$rand_str.config}.video_share_xian_who > 1 && {$rand_str.config}.video_share_qun_num > 0 ){
						share_qun();
					} else {
						end_share();
					}

				} else {
					share_quan();
				}

			},
		});
	}
</script>
</body>
</html>
